GtkSwitch: Also animate for keyboard activation
authorMatthias Clasen <mclasen@redhat.com>
Mon, 4 Aug 2014 11:56:39 +0000 (13:56 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 4 Aug 2014 12:36:41 +0000 (14:36 +0200)
gtk/gtkswitch.c

index 44435582ffec465b1d3d9e623d870a835e5309c3..915dc3899fb4e23e467611fde871001504f63c4b 100644 (file)
@@ -363,9 +363,7 @@ gtk_switch_leave (GtkWidget        *widget,
 static void
 gtk_switch_activate (GtkSwitch *sw)
 {
-  GtkSwitchPrivate *priv = sw->priv;
-
-  gtk_switch_set_active (sw, !priv->is_active);
+  gtk_switch_begin_toggle_animation (sw);
 }
 
 static void